package com.base.vo;

/**
 * 返回码定义
 * @author Administrator
 */
public enum ReturnCodeEnum {
    /**
     * 成功
     */
    CODE_0(0, "成功"),
    /**
     * 参数错误
     */
    CODE_1001(1001, "参数错误"),
    /**
     * 业务异常
     */
    CODE_1101(1101, "业务异常"),
    
    /**
     * 数据库异常
     */
    CODE_2001(2001, "数据库异常"),
    /**
     * 系统错误
     */
    CODE_9999(9999, "系统错误");
    /**
     * 返回码
     */
    private Integer code;
    
    /**
     * 返回消息
     */
    private String msg;
    
    private ReturnCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    
    public Integer getCode() {
        return code;
    }
    
    public void setCode(Integer code) {
        this.code = code;
    }
    
    public String getMsg() {
        return msg;
    }
    
    public void setMsg(String msg) {
        this.msg = msg;
    }
    
}
